/*
 * @Author: Wang chunsheng  email:2192138785@qq.com
 * @Date:   2020-06-06 14:29:18
 * @Last Modified by:   Wang chunsheng  email:2192138785@qq.com
 * @Last Modified time: 2020-06-14 00:45:31
 */
// import Vue from '/node_modules/vue/dist/vue.min.js'

// console.log(window.basepath)
// import Vue from './node_modules/vue/dist/vue.min.js'
import dikaerji from './public/utli/dikaerji.js'
import global from './public/utli/global.js'

Vue.prototype.global = global 
Vue.config.productionTip = false
Vue.use(global)
Vue.use(dikaerji)
// 以form data 方式进行post请求
Vue.http.options.emulateJSON = true
Vue.http.options.headers = {
    'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
    'X-CSRF-Token':window.sysinfo.csrfToken // _csrf验证
}  
Vue.prototype.VueResource=VueResource

window.onresize = function () {
    fnResize();
}
function fnResize() {
  var deviceWidth = document.documentElement.clientWidth || window.innerWidth;
  if (deviceWidth >= 750) {
    deviceWidth = 750;
  }
  if (deviceWidth <= 320) {
    deviceWidth = 320;
  }
  document.documentElement.style.fontSize = (deviceWidth / 7.5) + 'px';
}
